<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>

<#include "/common/pagerForm.html">

<form rel="pagerForm" method="post" action="" onsubmit="return dialogSearch(this)">
<input type="hidden" id="advancedStatus" name="advancedStatus" value="${condition.advancedStatus!''}" />
    <div class="pageHeader">
        <div class="searchBar defect" >
            <ul class="searchContent">
            	<li>
            		<label style="width: 120px;"><@label key="andonTypeCode.C,colon">ANDON类型编号</@label></label> 
            		<input type="text" class="textInput" name="andonTypeCode" value="${condition.andonTypeCode!''}" />
            	</li>
                <li>
                	<label style="width: 120px;"><@label key="andonTypeText.C,colon">ANDON类型描述</@label></label> 
                	<input type="text" class="textInput" name="typeText" value="${condition.typeText!''}" />
                </li>
                <li class="lockFlag">
                    <div style="float: left;">
                        <label><@label key="status.C,colon">状态</@label></label> <select name="lockFlag">
                            <option value=""><@label key="all.C">所有</@label></option>
                            <option value="0"<#if condition.lockFlag?? && condition.lockFlag == 1>selected="selected"</#if>><@label key="enable.C">启用</@label></option>
                            <option value="1"<#if condition.lockFlag?? && condition.lockFlag == 0>selected="selected"</#if>><@label key="disable.C">禁用</@label></option>
                        </select>
                    </div>
                </li>
				<li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>                
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <table targetType="dialog"    class="table" width="100%" layoutH="135" style="overflow:scroll;">
        <thead>
            <tr>
                <th width="20"><@label key="serialNumber.C">序号</@label></th>
                <th width="50"><@label key="status.C">状态</@label></th>
                <th width="80"><@label key="andonTypeCode.C">安灯类型编号</@label></th>
                <th width="80"><@label key="andonTypeText.C">安灯类型描述</@label></th>
                <th width="60"><@label key="normalColor.C">正常状态颜色</@label></th>
                <th width="60"><@label key="touchColor.C">触发状态颜色</@label></th>
                 <th width="100"><@label key="selected_first.C">请选择</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as andonType>
            <tr target="andonType_code" rel="${andonType.andonTypeCode!''}">
                <td>${page.startRow + andonType_index}</td>
                <td><#if (andonType.lockFlag == 0)>
                		<@label key="enable.C">启用</@label>
                	<#else>
                		<@label key="disable.C">禁用</@label>
                	</#if></td>
                <td>${andonType.andonTypeCode!''}</td>
                <td>${andonType.typeText!''}</td>                
                <td>
                    <div style="width: 15px; height: 15px; margin-top:3px;-moz-border-radius: 10px ; 
                    -webkit-border-radius: 10px; border-radius: 10px; background:${andonType.normalColor!''};">
                    </div>
                </td>
                <td>
                    <div style="width: 15px; height: 15px; margin-top:3px;-moz-border-radius: 10px ; 
                    -webkit-border-radius: 10px; border-radius: 10px; background:${andonType.touchColor!''};">
                    </div>
                </td>
                <td><a class="btnSelect bringBack" value="{andonTypeCode:'${andonType.andonTypeCode!''}',andonTypeText:'${andonType.typeText!''}'}" >选择</a></td>
            </tr>
            </#list> <#else>
                <tr >
                <td colspan="7"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if> <#else>
            <tr >
                <td colspan="7"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>
